package com.wx.chapter8.homework08;

/**
 * ClassName:CheckingAccount
 * Package :com.wx.chapter8.homework08
 * Description :
 *
 * @Author : coder_mu
 * @Create : 2023/5/29 - 17:31
 */
public class CheckingAccount extends BankAccount {
    public CheckingAccount(int balance) {
        super(balance);
    }

    @Override
    public void deposit(double amount) {
        super.deposit(amount - 1);
    }

    @Override
    public void withdraw(double amount) {
        super.withdraw(amount + 1);
    }
}
